import request from '@/utils/request'


// 商品品牌列表查询
export function queryPmsBrandList(params) {
    return request({
      url:'webApi/admin/brand/queryPmsBrandList',
      method:'get',
      params:params
    })
}

// 根据id获取品牌
export function getBrandById(id) {
    return request({
      url:'webApi/admin/brand/get/' + id,
      method:'get'
    })
}

// 商品品牌添加
export function addPmsBrand(data) {
    return request({
      url:'webApi/admin/brand/addPmsBrand',
      method:'post',
      data:data
    })
}

// 商品品牌更新
export function updatePmsBrand(id, data) {
    return request({
      url:'webApi/admin/brand/update/' + id,
      method:'post',
      data:data
    })
}

// 商品品牌删除
export function deletePmsBrand(id, data) {
    return request({
        url:'webApi/admin/brand/delete/' + id,
        method:'delete',
        data:data
    })
}